package com.tencent.sr.iris.basic.saas.common.exception;

import com.tencent.sr.rmall.common.exception.code.ErrorCode;

/**
 * Copyright (C) 2022 Limited, a Tencent company. All rights reserved.
 *
 * @author cookyan@tencent.com
 * @date 2022/3/2 2:29 PM
 */
public enum BizErrorCode implements ErrorCode {
    PARAM_CHECK_ERROR("参数检查不通过"),
    RPC_ERROR("远程调用失败"),
    OUTLET_KAFKA_TOPIC_ERROR("Kafka消息发送失败"),

    ;
    private final String description;

    BizErrorCode(String description) {
        this.description = description;
    }

    @Override
    public String getCode() {
        return this.name();
    }

    @Override
    public String getDescription() {
        return this.description;
    }
}
